<?php
namespace BP\Sys;

use BP\En\EntityMyPK;

require_once("BP/En/Map.php");
class FrmRB extends EntityMyPK {
	public function getTip () 
	{
		return $this->GetValStringByKey(FrmRBAttr::$Tip);
	}
	public function setTip ($value) // [String value]
	{
		$this->SetValByKey(FrmRBAttr::$Tip, $value);
	}
	public function getSetVal () 
	{
		return $this->GetValStringByKey(FrmRBAttr::$SetVal);
	}
	public function setSetVal ($value) // [String value]
	{
		$this->SetValByKey(FrmRBAttr::$SetVal, $value);
	}
	public function getScript () 
	{
		return $this->GetValStringByKey(FrmRBAttr::$Script);
	}
	public function setScript ($value) // [String value]
	{
		$this->SetValByKey(FrmRBAttr::$Script, $value);
	}
	public function getFieldsCfg () 
	{
		return $this->GetValStringByKey(FrmRBAttr::$FieldsCfg);
	}
	public function setFieldsCfg ($value) // [String value]
	{
		$this->SetValByKey(FrmRBAttr::$FieldsCfg, $value);
	}
	public function getLab () 
	{
		return $this->GetValStringByKey(FrmRBAttr::$Lab);
	}
	public function setLab ($value) // [String value]
	{
		$this->SetValByKey(FrmRBAttr::$Lab, $value);
	}
	public function getKeyOfEn () 
	{
		return $this->GetValStringByKey(FrmRBAttr::$KeyOfEn);
	}
	public function setKeyOfEn ($value) // [String value]
	{
		$this->SetValByKey(FrmRBAttr::$KeyOfEn, $value);
	}
	public function getIntKey () 
	{
		return $this->GetValIntByKey(FrmRBAttr::$IntKey);
	}
	public function setIntKey ($value) // [int value]
	{
		$this->SetValByKey(FrmRBAttr::$IntKey, $value);
	}
	public function getY () 
	{
		return $this->GetValFloatByKey(FrmRBAttr::$Y);
	}
	public function setY ($value) // [float value]
	{
		$this->SetValByKey(FrmRBAttr::$Y, $value);
	}
	public function getX () 
	{
		return $this->GetValFloatByKey(FrmRBAttr::$X);
	}
	public function setX ($value) // [float value]
	{
		$this->SetValByKey(FrmRBAttr::$X, $value);
	}
	public function getFK_MapData () 
	{
		return $this->GetValStrByKey(FrmRBAttr::$FK_MapData);
	}
	public function setFK_MapData ($value) // [String value]
	{
		$this->SetValByKey(FrmRBAttr::$FK_MapData, $value);
	}
	public function getEnumKey () 
	{
		return $this->GetValStrByKey(FrmRBAttr::$EnumKey);
	}
	public function setEnumKey ($value) // [String value]
	{
		$this->SetValByKey(FrmRBAttr::$EnumKey, $value);
	}
	public function getFontSize () 
	{
		return $this->GetParaInt(FrmRBAttr::$FontSize, 12);
	}
	public function setFontSize ($value) // [int value]
	{
		$this->SetPara(FrmRBAttr::$FontSize, $value);
	}
	public static function constructor__ () 
	{
		$me = new self();
		return $me;
	}
	public static function constructor__String ($mypk) // [String mypk]
	{
		$me = new self();
		$me->setMyPK($mypk);
		$me->Retrieve();
		return $me;
	}
	public function getEnMap () 
	{
		if (($this->get_enMap() != NULL))
		{
			return $this->get_enMap();
		}
		$map = new Map("Sys_FrmRB", "单�?�框");
		$map->Java_SetDepositaryOfEntity($Depositary->None);
		$map->Java_SetDepositaryOfMap($Depositary->Application);
		$map->Java_SetEnType($EnType->Sys);
		$map->IndexField = FrmImgAthDBAttr::$FK_MapData;
		$map->AddMyPK();
		$map->AddTBString(FrmRBAttr::$FK_MapData, NULL, "表单ID",  TRUE ,  FALSE , 0, 300, 20);
		$map->AddTBString(FrmRBAttr::$KeyOfEn, NULL, "字段",  TRUE ,  FALSE , 0, 300, 20);
		$map->AddTBString(FrmRBAttr::$EnumKey, NULL, "枚举�?",  TRUE ,  FALSE , 0, 30, 20);
		$map->AddTBString(FrmRBAttr::$Lab, NULL, "标签",  TRUE ,  FALSE , 0, 500, 20);
		$map->AddTBInt(FrmRBAttr::$IntKey, 0, "IntKey",  TRUE ,  FALSE );
		$map->AddTBInt(MapAttrAttr::$UIIsEnable, 0, "是否启用",  TRUE ,  FALSE );
		$map->AddTBFloat(FrmRBAttr::$X, 5, "X",  TRUE ,  FALSE );
		$map->AddTBFloat(FrmRBAttr::$Y, 5, "Y",  FALSE ,  FALSE );
		$map->AddTBString(FrmRBAttr::$Script, NULL, "要执行的脚本",  TRUE ,  FALSE , 0, 4000, 20);
		$map->AddTBString(FrmRBAttr::$FieldsCfg, NULL, "配置信息@FieldName=Sta",  TRUE ,  FALSE , 0, 4000, 20);
		$map->AddTBString(FrmRBAttr::$SetVal, NULL, "设置的�??",  TRUE ,  FALSE , 0, 200, 20);
		$map->AddTBString(FrmRBAttr::$Tip, NULL, "选择后提示的信息",  TRUE ,  FALSE , 0, 1000, 20);
		$map->AddTBString(FrmRBAttr::$GUID, NULL, "GUID",  TRUE ,  FALSE , 0, 128, 20);
		$this->set_enMap($map);
		return $this->get_enMap();
	}
	protected function beforeInsert () 
	{
		$this->setMyPK((((($this->getFK_MapData() . "_") . $this->getKeyOfEn()) . "_") . $this->getIntKey()));
		return parent->beforeInsert();
	}
	protected function beforeUpdateInsertAction () 
	{
		$this->setMyPK((((($this->getFK_MapData() . "_") . $this->getKeyOfEn()) . "_") . $this->getIntKey()));
		return parent->beforeUpdateInsertAction();
	}
}
?>
